package org.contacts.dao.util;

import java.sql.*;

/**
 * Created by nnazarov on 3/28/14.
 */
public class DbUtil {
    public static void close(Connection connection) throws SQLException {
        if (connection != null) {
            connection.close();
        }
    }

    public static void close(Statement statement) throws SQLException {
        if (statement != null) {
            statement.close();
        }
    }

    public static void close(ResultSet resultSet) throws SQLException{
        if (resultSet != null) {
            resultSet.close();
        }
    }
}
